#include "Object.h"

string var::toString() const
{
	ostringstream s;
	switch (t)
	{
		case Int:
			s << i;
			return s.str();
		case Float:
			s << f;
			return s.str();
		case Obj:
			return o->toString();
	}
	return "";
}

Object* var::null = new Object(1);
